import request from '@/utils/request'

// 查询车间扣发绩效系数列表
export function listWsabsence(query) {
  return request({
    url: '/sl/wsabsence/list',
    method: 'get',
    params: query
  })
}

// 查询车间扣发绩效系数详细
export function getWsabsence(absenceId) {
  return request({
    url: '/sl/wsabsence/' + absenceId,
    method: 'get'
  })
}

// 新增车间扣发绩效系数
export function addWsabsence(data) {
  return request({
    url: '/sl/wsabsence',
    method: 'post',
    data: data
  })
}

// 修改车间扣发绩效系数
export function updateWsabsence(data) {
  return request({
    url: '/sl/wsabsence',
    method: 'put',
    data: data
  })
}

// 删除车间扣发绩效系数
export function delWsabsence(absenceId) {
  return request({
    url: '/sl/wsabsence/' + absenceId,
    method: 'delete'
  })
}
